<h1>You are logged in as</h1>
<?php if($userdata){ ?>
    <div class="logtitle">
        <label>Role</label>
    </div>
    <div class="logcontent">
        <label><?php echo $userdata->role;?></label>
    </div>
    <div class="logtitle">
        <label>Name</label>
    </div>
    <div class="logcontent">
        <label><?php echo $userdata->name;?></label>
    </div>
    <div class="logtitle">
        <label>Address</label>
    </div>
    <div class="logcontent">
        <label><?php echo $userdata->address;?></label>
    </div>
    <div class="logtitle">
        <label>City</label>
    </div>
    <div class="logcontent">
        <label><?php echo $userdata->city;?></label>
    </div>
    <div class="logtitle">
        <label>Phone</label>
    </div>
    <div class="logcontent">
        <label><?php echo $userdata->telephone;?> / <?php echo $userdata->handphone;?></label>
    </div>
    <div class="logtitle">
        <label>Fax</label>
    </div>
    <div class="logcontent">
        <label><?php echo $userdata->fax;?></label>
    </div>
<?php } ?>